package com.spring.hx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.spring.hx.service.NacosProviderService;

@RestController
public class NacosProviderController {
	
	@Value("${server.port}")
	private String port;
	
	@Autowired
	private NacosProviderService nacosProviderService;
	
	@GetMapping(value = "/echo")
	public String echo() {
		
		return nacosProviderService.echo("consumer.port:" + port +",hello feign");
	}

}
